//
//  ZZNormalViewController.m
//  ZZNetWorker_Example
//
//  Created by ZengLiZhi on 2024/2/1.
//  Copyright © 2024 zenglizhi. All rights reserved.
//

#import "ZZNormalViewController.h"
#import "ZZNetWorker.h"
#import "DataModel1.h"

@interface ZZNormalViewController ()


@end

@implementation ZZNormalViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    
    
    
//    [ZZViewController class];
//    [ZZNetWorker woker].baseUrl = @"";
    ZZNetWorker.GET
        .zz_url(@"https://v2.jinrishici.com/token")
        .zz_dataClass([DataModel1 class])
        .zz_testResponse(@{@"code":@"200",@"data":@{@"name":@"sss",@"data":@"testDataString"}})
    .zz_completion(^(ZZNetWorkResponse<DataModel1 *> * _Nonnull response, NSError * _Nonnull error) {
        NSLog(@"%@",response.obj);
        self.textLabel.text = response.obj.description;
    });
    
    
    //TODO: 支持上传文件
}

@end
